require 'spec_helper'
require 'vector'

describe Vector, "calculating lengths from a given point" do
  before(:each) do
    @v = Vector.new
  end
  
  it "should return a length of 6.4 for vector [4, 5]" do
    @v.point = Point.new(4, 5)
    @v.length.should be_close(6.4, 0.1)
  end
end